package com.sf.dlb.jpa.model;

import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * 用户新闻表 Entity
 *
 * Created by jing.tan on 2018/12/10.
 */
@Entity
@Table(name="user_new_info")
public class UserNewInfo extends BaseEntity{
    /*
      `user_id` varchar(64) DEFAULT NULL COMMENT '用户id',
      `class_ids` varchar(255) DEFAULT NULL COMMENT '订阅模块id(1,2,3)',
      `read_count` bigint(20) DEFAULT NULL COMMENT '阅读数量',
      `read_time_long` bigint(20) DEFAULT NULL COMMENT '阅读时长(秒)',
      `history_getdlb_count` decimal(10,3) DEFAULT NULL COMMENT '历史累计阅读获取dlb数量',
      `read_getdlb_unit` varchar(64) DEFAULT '0' COMMENT '阅读奖励dlb单位',
      `read_getdlb_rule` varchar(255) DEFAULT NULL COMMENT '阅读奖励dlb规则(收益减半)',
     */
    private static final long serialVersionUID = 1L;
    private String userId;                  // 用户id
    private String classIds;                // 订阅模块id(1,2,3)
    private Integer readCount;               // 可用的dlb
    private Integer readTimeLong;            // 阅读时长(秒)
    private Double historyGetdlbCount;       // 历史累计阅读获取dlb数量
    private Double readGetdlbUnit;             // 阅读奖励dlb单位
    private String readGetdlbRule;             // 阅读奖励dlb规则(收益减半)

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getClassIds() {
        return classIds;
    }

    public void setClassIds(String classIds) {
        this.classIds = classIds;
    }

    public Integer getReadCount() {
        return readCount;
    }

    public void setReadCount(Integer readCount) {
        this.readCount = readCount;
    }

    public Integer getReadTimeLong() {
        return readTimeLong;
    }

    public void setReadTimeLong(Integer readTimeLong) {
        this.readTimeLong = readTimeLong;
    }

    public Double getHistoryGetdlbCount() {
        return historyGetdlbCount;
    }

    public void setHistoryGetdlbCount(Double historyGetdlbCount) {
        this.historyGetdlbCount = historyGetdlbCount;
    }

    public Double getReadGetdlbUnit() {
        return readGetdlbUnit;
    }

    public void setReadGetdlbUnit(Double readGetdlbUnit) {
        this.readGetdlbUnit = readGetdlbUnit;
    }

    public String getReadGetdlbRule() {
        return readGetdlbRule;
    }

    public void setReadGetdlbRule(String readGetdlbRule) {
        this.readGetdlbRule = readGetdlbRule;
    }
}